package org.spring.springboot.domain;
/**
 * 基础实体类
 * 设备类别信息，
 * 默认cid来关联其他的表，应该是外健
 * pid作为Category的主健
 * 包括了cid
 * pid 设备名字等，后期进行扩充
 * @author lang
 *
 */
public class Category extends Entity{
	private int cid;
	private int pid;
	private String name;
	private Equipment equipment;
	public int getCid() {
		return super.getId();
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public Equipment getEquipment() {
		return equipment;
	}
	public void setEquipment(Equipment equipment) {
		this.equipment = equipment;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}	
}
